package com.house.system.domain;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 房屋中介表对象 medium
 *
 * @author tc
 * @date 2022-02-04
 */
public class Medium {

    /**
     * 中介人(用户)编号
     */
    private Long userId;

    /**
     * 用户名,不在数据库字段中,做显示用
     */
    private String username;

    /**
     * 房屋编号
     */
    private Long houseId;

    /**
     * 不动产权证
     */
    private String estate;

    /**
     * 中介是否为该房屋负责人 默认不是
     */
    private boolean flag = false;

    public String getEstate() {
        return estate;
    }

    public void setEstate(String estate) {
        this.estate = estate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    public Long getHouseId() {
        return houseId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("houseId", getHouseId())
                .toString();
    }
}
